<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo4-JSONP在jQuery中的具体实现-ajax</title>
    <script src="../../lib/jquery/dist/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
    $(document).ready(function () {
        $.ajax({
            type:"get",
            url:"http://localhost:3000/result",
            async:false,
            dataType:"jsonp",
            jsonp:"callback",
            success:function (data) {
                alert(data)
            }
        })
    })
</script>
</body>
</html>